<?php
namespace Swiftx\Bundle\WeChat\System;
use Swiftx\Bundle\WeChat\Model\Seller\Company;
use Swiftx\Component\Application\Server;
use Swiftx\Interfaces\Orm\Manager;

require 'vendor/autoload.php';


// 初始化服务器
$server = new Server();
$server->boot(__DIR__);

// 启动应用对象
$app = new Application($server);
$app->boot();

/** @var Manager $manager */
$manager = $app->fetch(Manager::class);

$test = $manager->query(Company::class,'Standard');
//$test->bind('email', 'test@oday.me');

/** @var Company $result */
$result = $test->list();
var_dump($result);